package com.devunion.salon.core.model;

import com.devunion.salon.core.model.security.User;

import javax.persistence.Entity;
import javax.persistence.OneToOne;
import javax.persistence.ManyToOne;

/**
 * @author spetrakovsky  23.02.2009
 */
@Entity
public class Employee extends User {

    @OneToOne
    private Person person;

    @OneToOne
    private Address address;

    @ManyToOne
    private Office office;

    public Office getOffice() {
        return office;
    }

    public void setOffice(Office office) {
        this.office = office;
    }

    public Person getPerson() {
        return person;
    }

    public void setPerson(Person person) {
        this.person = person;
    }

    public Address getAddress() {
        return address;
    }

    public void setAddress(Address address) {
        this.address = address;
    }
}
